import java.io.FileNotFoundException;



/******************************************************************************
 * <p>
 * File: Interaction.java
 * </p>
 * @author  Goncalo Bastos
 * @author <a href="mailto:cartman412@gmail.com">Email Goncalo</a>
 * @version 1.0, 2007
 * @created 
 * @revised 
 * 	<p>
 * 	Description: Interaction between enemies and the hero
 * </p>
 *  
 *  This file is part of Retribution.
 *
 *  Retribution is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  Retribution is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Retribution; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *   
 *****************************************************************************/
public class Interaction{
	
	public Interaction(){

	}
	public void enemyAttack(hero h, enemy e){
		h.setHealth(h.getHealth()-e.getAttackStrength());
		e.hasAttacked(true,h,e);	
		e.setAttackState(true);
	}
	public void heroAttack(hero h, enemy e){
		GameSounds s = new GameSounds();
		try {
			s.HeroSwordHit();
		} catch (FileNotFoundException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		e.setHealth(e.getHealth()-h.getAttackStrength());
		h.hasAttacked(true, h, e);
		h.setAttackState(true);
		e.setAttackState(false);
	}

}
